<div class="row border-bottom white-bg">
  <nav class="navbar navbar-static-top" role="navigation">
    <div class="navbar-header">
      <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
        <i class="fa fa-reorder"></i>
      </button>
      <%=link_to 'CLOUDSIGNIN', dashboard_path, class:'navbar-brand'%>

    </div>
    <div class="navbar-collapse collapse" id="navbar">
      <ul class="nav navbar-nav <%= 'hidden' if !@current_admin.root %>">
        <li class="dropdown">
          <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 活动管理 <span class="caret"></span></a>
          <ul role="menu" class="dropdown-menu">
            <li> <%=link_to '全部活动', events_path%> </li>
            <li> <%=link_to '添加活动', new_event_path%> </li>
            <li> <%=link_to '设置当前活动', set_current_event_path%> </li>
          </ul>
        </li>
        <li class="dropdown">
          <a aria-expanded="false" role="button" class="dropdown-toggle" data-toggle="dropdown"> 管理员  <span class="caret"></span></a>
          <ul role="menu" class="dropdown-menu">
            <li> <%=link_to '全部管理员', admins_path%> </li>
            <li> <%=link_to '添加管理员', new_admin_path%> </li>
          </ul>
        </li>
        <li><%=link_to '公司信息设置', edit_company_path%></li>
      </ul>
      <ul class="nav navbar-top-links navbar-right">
        <li>
          <%= link_to sign_out_path, method: :delete, data: {confirm: '是否确认退出登录'} do %>
            <i class="fa fa-sign-out"></i> 退出登录
          <% end %>
        </li>
      </ul>
    </div>
  </nav>
</div>